//
//  EditInfoModel.m
//  QT
//
//  Created by 甘世清 on 2025/1/7.
//

#import "EditInfoModel.h"

@implementation EditInfoModel
+(void)SQ_jsonArray:(NSMutableArray*)jsonArray{
    [jsonArray removeAllObjects];
    NSArray * array = @[@"性别",@"生日",@"昵称",@"相册",@"城市",@"简介"];
    UserModel * model = [UserModel share];
    for (int x = 0; x<array.count; x++) {
        EditInfoModel * mo = [EditInfoModel new];
        
        mo.leftString = [array objectAtIndex:x];
        if ([mo.leftString isEqualToString:@"昵称"]) {
            mo.rightString = model.name;
        }else if ([mo.leftString isEqualToString:@"性别"]) {
            if (model.gender == 1) {
                mo.rightString = SQNSLocalString(@"男性");
            } else {
                mo.rightString = SQNSLocalString(@"女性");
            }
        }else if ([mo.leftString isEqualToString:@"生日"]) {
            mo.rightString = model.birthday;
        }else if ([mo.leftString isEqualToString:@"城市"]) {
            mo.rightString = model.city;
        }else if ([mo.leftString isEqualToString:@"简介"]) {
            mo.rightString = model.remark;
        }
        [jsonArray addObject:mo];
    }
}
@end
